#ifndef ENSCENE_H
#define ENSCENE_H

#include <QtGui>
#include <QtOpenGL/QtOpenGL>
#include <QGraphicsScene>
#include <QColor>
#include <QRubberBand>

class EnScene : public QGraphicsScene
{
    Q_OBJECT

public:
    EnScene();
    ~EnScene();
    //void drawBackground( QPainter *painter, const QRectF &rect );

protected:
    //void keyReleaseEvent( QKeyEvent *event );
    //void mousePressEvent( QGraphicsSceneMouseEvent *event );
    //void mouseReleaseEvent( QGraphicsSceneMouseEvent *event );
    //void mouseMoveEvent( QGraphicsSceneMouseEvent *event );
    //void wheelEvent( QGraphicsSceneWheelEvent *event );
    //void dragMoveEvent( QGraphicsSceneDragDropEvent *event );

private:
    QTime timer;
    QColor backgroundColor;
    QPointF origin;
    void initGL();

};

#endif // ENSCENE_H
